#ifndef WIDGET4_H
#define WIDGET4_H

#include <QWidget>
#include <QDir>
#include <QMessageBox>
#include <QLineEdit>
#include <QPushButton>
#include <QFile>
#include <QMessageLogger>
class Widget4 : public QWidget
{
    Q_OBJECT
public:
    explicit Widget4(QWidget *parent = nullptr);
    void init();
    //创建文件夹
    void createFolder();
    //写入文件
    void writeFile();
    //文件相关操作
    void aboutFile();
signals:

public slots:
    //创建文件夹
    void slotCreateFolder();
    //写入文件
    void slotWriteFile();

private:
    QMessageLogger * logger;
    //创建文件夹控件
    QLineEdit *edit;
    QPushButton *button;

    //写入文件控件
    QPushButton *writeBtn;
    QLineEdit *writeEdit;
    QLineEdit *writeContent;


};

#endif // WIDGET4_H
